package com.elephantgreen.common;

import java.util.Date;

/**
 * Represent individual sale within the system.
 * 
 * @author Shaminda Samaratunge
 *
 */
public class Sale extends ElephantgreenCommon {

	private String invoiceNumber;
	private Client client;
	private Date saleDate;
	private double cashDiscount;
	private int percentDiscount;
	private double saleTotal;
	private double finalSaleAmount;
	private String adjustmentReason;
	private double adjustmentAmount;
	private String comments;
	
	/**
	 * Create new Sale.
	 * 
	 * @param invoiceNumber
	 * @param client
	 * @param saleDate
	 * @param cashDiscount
	 * @param percentDiscount
	 * @param saleTotal
	 * @param finalSaleAmount
	 * @param adjustmentReason
	 * @param adjustmentAmount
	 * @param comments
	 */
	public Sale(String invoiceNumber, Client client, Date saleDate,
			double cashDiscount, int percentDiscount, double saleTotal,
			double finalSaleAmount, String adjustmentReason,
			double adjustmentAmount, String comments) {
		super();
		this.invoiceNumber = invoiceNumber;
		this.client = client;
		this.saleDate = saleDate;
		this.cashDiscount = cashDiscount;
		this.percentDiscount = percentDiscount;
		this.saleTotal = saleTotal;
		this.finalSaleAmount = finalSaleAmount;
		this.adjustmentReason = adjustmentReason;
		this.adjustmentAmount = adjustmentAmount;
		this.comments = comments;
	}

	public String getInvoiceNumber() {
		return invoiceNumber;
	}

	public void setInvoiceNumber(String invoiceNumber) {
		this.invoiceNumber = invoiceNumber;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	public Date getSaleDate() {
		return saleDate;
	}

	public void setSaleDate(Date saleDate) {
		this.saleDate = saleDate;
	}

	public double getCashDiscount() {
		return cashDiscount;
	}

	public void setCashDiscount(double cashDiscount) {
		this.cashDiscount = cashDiscount;
	}

	public int getPercentDiscount() {
		return percentDiscount;
	}

	public void setPercentDiscount(int percentDiscount) {
		this.percentDiscount = percentDiscount;
	}

	public double getSaleTotal() {
		return saleTotal;
	}

	public void setSaleTotal(double saleTotal) {
		this.saleTotal = saleTotal;
	}

	public double getFinalSaleAmount() {
		return finalSaleAmount;
	}

	public void setFinalSaleAmount(double finalSaleAmount) {
		this.finalSaleAmount = finalSaleAmount;
	}

	public String getAdjustmentReason() {
		return adjustmentReason;
	}

	public void setAdjustmentReason(String adjustmentReason) {
		this.adjustmentReason = adjustmentReason;
	}

	public double getAdjustmentAmount() {
		return adjustmentAmount;
	}

	public void setAdjustmentAmount(double adjustmentAmount) {
		this.adjustmentAmount = adjustmentAmount;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	
}
